package com.tyqx.service.impl;

import com.tyqx.bean.model.SubServerSendInfo;
import com.tyqx.mapper.SubServerSendInfoMapper;
import com.tyqx.service.SubServerSendInfoService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class SubServerSendInfoServiceImpl implements SubServerSendInfoService {

    @Resource
    private SubServerSendInfoMapper subServerSendInfoMapper;

    @Override
    public boolean insert(SubServerSendInfo subServerSendInfo) {
        if(subServerSendInfoMapper.insert(subServerSendInfo)>0){
            return true;
        }else{
            return false;
        }
    }

    @Override
    public List<SubServerSendInfo> selectSubServerSendInfoByComputName(String computName) {
        return subServerSendInfoMapper.selectSubServerSendInfoByComputName(computName);
    }

    @Override
    public boolean delete(Integer id) {
        if(subServerSendInfoMapper.delete(id)>0){
            return true;
        }else{
            return false;
        }
    }
}
